﻿<Window x:Class="CapstoneProjectAEReader.GUIs.TranslationGUI.BookmarkHeader"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="BookmarkHeader" Height="150" Width="400"
        ResizeMode="NoResize" Icon="pack://application:,,,/BookMark.ico">
    <Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Close" Executed="CloseCommandHandler" />
    </Window.CommandBindings>
    <Grid>
        <Grid.Background>
            <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                <GradientStop Color="AliceBlue" Offset="0" />
                <GradientStop Color="WhiteSmoke" Offset="0.5" />
                <GradientStop Color="AliceBlue" Offset="1" />
            </LinearGradientBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <TextBox x:Name="tbHeader" TextWrapping="Wrap" Grid.Row="0" Grid.ColumnSpan="2" Margin="10"
                 VerticalScrollBarVisibility="Visible" BorderBrush="MediumPurple" />
        <StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="1" Margin="10,0,0,0">
            <TextBox x:Name="txtPageNo" VerticalAlignment="Center" Width="36" Height="24" MaxLines="1" MaxLength="4"
                     HorizontalAlignment="Center" />
        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Right" Margin="0,0,6,0">
            <Button x:Name="btOk" Background="Transparent" BorderThickness="0" Margin="4" Click="BtOkClick">
                <Grid>
                    <Image Height="20">
                        <Image.Style>
                            <Style TargetType="{x:Type Image}">
                                <Setter Property="Source" Value="Images/translateButton.png" />
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding IsMouseOver, ElementName=btOk}" Value="True">
                                        <Setter Property="Source" Value="Images/translateButtonHover.png" />
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </Image.Style>
                    </Image>
                    <Label Content="OK" HorizontalAlignment="Center" />
                </Grid>
            </Button>
            <Button x:Name="btCancel" Background="Transparent" BorderThickness="0" Margin="4"
                    Command="ApplicationCommands.Close">
                <Grid>
                    <Image Height="20">
                        <Image.Style>
                            <Style TargetType="{x:Type Image}">
                                <Setter Property="Source" Value="Images/translateButton.png" />
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding IsMouseOver, ElementName=btCancel}" Value="True">
                                        <Setter Property="Source" Value="Images/translateButtonHover.png" />
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </Image.Style>
                    </Image>
                    <Label Content="Cancel" HorizontalAlignment="Center" />
                </Grid>
            </Button>
        </StackPanel>
    </Grid>
</Window>